﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SiteRequireLogin.Master" AutoEventWireup="true" CodeBehind="Addmissed.aspx.cs" Inherits="TranTekBE.Missed.Addmissed" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="assets/css/main-style.css" rel="stylesheet" />
    <link href="assets/css/style.css" rel="stylesheet" />
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="assets/plugins/timeline/timeline.css" rel="stylesheet" />
    <link href="assets/plugins/social-buttons/social-buttons.css" rel="stylesheet" />
    <script src="assets/plugins/pace/pace.js"></script>
    <link href="assets/plugins/bootstrap/bootstrap.css" rel="stylesheet" />
    <script src="assets/plugins/bootstrap/bootstrap.js"></script>
    <script src="assets/plugins/bootstrap/bootstrap.min.js"></script>
    <script src="assets/plugins/dataTables/jquery.dataTables.js"></script>
    <link href="assets/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
    <script src="assets/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="assets/plugins/flot/excanvas.min.js"></script>
    <script src="assets/plugins/flot/jquery.flot.js"></script>
    <script src="assets/plugins/flot/jquery.flot.pie.js"></script>
    <script src="assets/plugins/flot/jquery.flot.resize.js"></script>
    <script src="assets/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="assets/plugins/morris/raphael-2.1.0.min.js"></script>
    <link href="assets/plugins/morris/morris-0.4.3.min.css" rel="stylesheet" />
    <script src="assets/plugins/morris/morris.js"></script>
    <script src="assets/plugins/metisMenu/jquery.metisMenu.js"></script>
    <link href="assets/plugins/pace/pace-theme-big-counter.css" rel="stylesheet" />
    <script src="assets/scripts/dashboard-demo.js"></script>
    <script src="assets/scripts/flot-demo.js"></script>
    <script src="assets/scripts/morris-demo.js"></script>
    <script src="assets/scripts/siminta.js"></script>
</asp:Content>






<asp:Content ID="Content2" ContentPlaceHolderID="BodyContent" runat="server">

    <div id="wrappermiss">
    
            

        <nav class="navbar-default navbar-static-side" role="navigation">
            <!-- sidebar-collapse -->
            <div class="sidebar-collapse">
                <!-- side-menu -->
                <ul class="nav" id="side-menu">
                    <li>
                        <!-- user image section-->
                        <div class="user-section">
                            <div class="user-section-inner">
                                <img src="assets/img/user.jpg" alt="">
                            </div>
                            <div class="user-info">
                                <div><strong><asp:Literal ID="lastname" runat="server"></asp:Literal></strong></div>
                                <div class="user-text-online">
                                    <span class="user-circle-online btn btn-success btn-circle "></span>&nbsp;Online
                                </div>
                            </div>
                        </div>
                        <!--end user image section-->
                    </li>
                     <li class="selected">
                        <a href="Addmissed.aspx"><i class="fa fa-edit fa-fw"></i>Thêm đơn hàng</a>
                    </li>
                     <li>
                        <a href="Main.aspx"><i class="fa fa-files-o fa-fw"></i>Xem và Xuất báo cáo</a>
                    </li>
                </ul>
                <!-- end side-menu -->
            </div>
            <!-- end sidebar-collapse -->
        


    </nav>


          
        <div id="page-wrapper">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header">Thêm đơn đặt hàng bị nhỡ</h1>
                </div>
                <!--end page header -->
            
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Điền đầy đủ các thông tin
                        </div>                        
                               <asp:Literal ID="ok" runat="server"></asp:Literal>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <h3>Thông tin thuốc</h3>
                                    <form role="form">
                                        <div class="form-group">
                                            <label>Tên thuốc: <asp:Literal ID="status" runat="server"></asp:Literal></label>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/jquery-ui.min.js"></script> 
<script type="text/javascript">
    $(function () {
        $('.form-control').autocomplete({
            source: function (request, response) {
                $.ajax({
                    url: "Addmissed.aspx/getnameserver",
                    data: "{ 'value': '" + request.term + "' }",
                    dataType: "json",
                    type: "POST",
                    contentType: "application/json; charset=utf-8",
                    dataFilter: function (data) { return data; },
                    success: function (data) {
                        response($.map(data.d, function (item) {
                            return { value: item }
                        }))
                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        alert(textStatus);
                    }
                });
            },
            minLength: 2
        });
    });
</script>

     <asp:TextBox ID="tbAuto" class="form-control" runat="server">
     </asp:TextBox>
                                  <p class="help-block">Ví dụ: Panadol</p>
                                        </div>
                                         <div class="form-group">
                                            <label>Lý do:</label>
                                            <div class="radio">
                                                <label>
                                                    <asp:RadioButton ID="stock" GroupName="abc" runat="server" Text="Hết hàng" />
                                                </label>
                                            </div>
                                            <div class="radio">
                                                <label>
                                                    <asp:RadioButton ID="noavaible" GroupName="abc" runat="server" Text="Sản phẩm chưa có"/>
                                                </label>
                                            </div>
                                        </div>
                                       
                                        
                
                                </div>




                                <div class="col-lg-6">
                                    <h3>Thông tin nhà thuốc</h3>

                                        <fieldset>
                                            <div class="form-group">
                                                <label for="disabledSelect">Tên nhân viên</label>
                                               <asp:TextBox ID="employee" class="form-control"  disabled="disabled" runat="server"></asp:TextBox>
                                            </div>
                                            <div class="form-group">
                                            <label>Nhà thuốc:</label>
                                                <asp:DropDownList ID="idstore" class="form-control" runat="server"></asp:DropDownList>
                                            </div>
                                        </fieldset>
                                         <div class="form-group">
                                            <label>Ghi chú:</label>
                                             <asp:TextBox ID="note" class="form-control" runat="server" Columns="3" TextMode="MultiLine" ></asp:TextBox>
                                        </div>
                                    </form>
                                    <asp:Button ID="submit" class="btn btn-primary" runat="server" Text="Thêm đơn hàng" OnClick="submit_Click" />
                                </div>
                            </div>
                        </div>
                    </div>
                     <!-- End Form Elements -->
                     <!-- 5 Đơn hàng nhỡ trong ngày-->
                    <div class="panel panel-default">
                        <div class="panel-heading">5 Đơn hàng nhỡ mới nhất </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th>STT</th>
                                            <th>Tên thuốc</th>
                                            <th>Mã thuốc</th>
                                            <th>Lý do</th>
                                            <th>Cửa hàng</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Literal ID="top5ordermissed" runat="server"></asp:Literal>
                                    </tbody>
                                </table>
                            </div>
                            
                        </div>
                    </div>
                </div>     
        </div>
    </div>
</asp:Content>
